package cn.gok.client.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @auther: shikundai
 * @Time: 2020/9/24  16:49
 * @description: 测试控制器
 */
@Controller
@RequestMapping("/client")
public class TestController {
    @GetMapping("/t1")
    public String test(Model model){
        System.out.println("你好！");
        model.addAttribute("name","代时坤");
        return "client/test";
    }
}
